from django.db import models

# Create your models here.
class Newsmodel(models.Model):
    title = models.CharField(max_length=100)
    conent = models.CharField(max_length=200)
    pub_time = models.DateField()
    auther = models.CharField(max_length=50)
    def __str__(self):
        return self.title
    class Meta():
        db_table = 'news'